package operator_05;
public class Operator {
    public static void main(String args[]){
        int a = 1;
        int b = 2;
        System.out.println(a < b);
        System.out.println(a <= b);
        System.out.println(a > b);
        System.out.println(a >= b);
        System.out.println(a == b);
        System.out.println(a != b);
    }
    
    /*加减乘除求余
        // int i = 10;
        // int j = 3;
        // System.out.println(i+j);//13
        // System.out.println(i-j);//7
        // System.out.println(i*j);//30
        // System.out.println(i/j);//3
        // System.out.println(i%j);//1
    */
}
/*单目运算符++的运算规则
 *      ++变量：先自加再赋值
 *      变量++：先赋值再自加
        int a = 100;
        int b = ++a;
        System.out.println(a);//101
        System.out.println(b);//101

        int a = 100;
        int b = a++;
        System.out.println(a);//101
        System.out.println(b);//100

        int x = 1;
        System.out.println(x++);//1
        System.out.println(x);  //2

        int x = 1;
        System.out.println(++x);//2
        System.out.println(x);  //2
*/